package com.shy.service;

import com.github.pagehelper.PageInfo;
import com.shy.entity.Clue;
import com.shy.entity.ClueRemark;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ClueService {
    /**
     * 分页查询线索列表
     *
     * @param current
     * @param pageSize
     * @return
     */
    PageInfo<Clue> queryClueList(Integer current, Integer pageSize);

    /**
     * 根据id查询线索详情
     *
     * @param id
     * @return
     */
    Clue queryClueById(Integer id);

    List<Clue> queryClueByIds(Integer clueId);

    void batchImportClue(MultipartFile file) throws IOException;

    /**
     * 添加线索
     * @param clue
     * @return
     */
    Boolean saveClue(Clue clue);
    /**
     * 编辑线索
     * @param clue
     * @return
     */
    Boolean modifyClue(Clue clue);

    /**
     * 批量删除线索
     * @param ids
     * @return
     */
    Boolean batchRemoveCluesByIds(List<Integer> ids);

    Boolean addActivityRemarks(ClueRemark clueRemark);

    Boolean deleteRemark(Integer clueRemarkId);
}
